projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5b7376
)
(tex-compilation-parse-errors): Check for
author
Chong Yidong
<cyd@stupidchicken.com>
Fri, 25 Jul 2008 18:41:50 +0000
(18:41 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Fri, 25 Jul 2008 18:41:50 +0000
(18:41 +0000)
invalid filename strings when parsing tex errors (bug#376).
lisp/textmodes/tex-mode.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/tex-mode.el
b/lisp/textmodes/tex-mode.el
index a42a195b8ec8fe25e92235b484ebe8af384f9f18..da61ad5d893d99a883379d51615870e654fdf7e3 100644
(file)
--- a/
lisp/textmodes/tex-mode.el
+++ b/
lisp/textmodes/tex-mode.el
@@
-2047,7
+2047,11
@@
for the error messages."
(with-syntax-table tex-error-parse-syntax-table
(backward-up-list 1)
(skip-syntax-forward "(_")
- (while (not (file-readable-p (thing-at-point 'filename)))
+ (while (not
+ (and (setq try-filename (thing-at-point
+ 'filename))
+ (not (string= "" try-filename))
+ (file-readable-p try-filename)))
(skip-syntax-backward "(_")
(backward-up-list 1)
(skip-syntax-forward "(_"))